<div class="row">
	<div class="col-md-12"><h1 class="page-header"><small>カート商品詳細</small></h1></div>
</div>
<form method="post" action="<?=site_url('cart/update')?>">
<table class="table table-bordered">
<thead>
<tr>
    <th>取消</th>
    <th style="text-align:center" width="10%"></th>
    <th style="text-align:center" width="30%">商品名</th>
    <th style="text-align:center" width="20%">単価</th>
    <th style="text-align:center" width="20%">数量</th>
    <th style="text-align:center" width="20%">合計</th>
</tr>
</thead>
<tbody>
<?php $i=1;?>
<?php foreach($data['cart_item'] as $items): ?>
<input type="hidden" name="rowid[]" value="<?php echo $items['rowid'];?>" />
<tr>
  <td><input type="checkbox" name="del[]" value="<?php echo $i - 1;?>" /></td>
  <td><img class="img-responsive" src="/zswebshop/include/img/ad47588.jpgd" alt="" width="90" height="60" onerror="this.src='/zswebshop/include/img/noimage.png';" ></td>
  <td><?php echo $items['commodity_name']; ?></td>
  <td style="text-align:right"><?php echo number_format($items['unit_price']); ?>円</td>
  <td style="text-align:center">
    <input type="text" name="qty[]" value="<?php echo $items['qty']?>" maxlength="3" size="5" style="text-align:right"/>
  </td>
  <td style="text-align:right"><?php echo number_format($items['sub_total']); ?>円</td>
</tr>
<?php $i++; ?>
<?php endforeach; ?>
<td colspan="4" align="center">合計</td>
<td style="text-align:right"><?php echo number_format($data['total_count']) ?>個</td>
<td style="text-align:right"><?php echo number_format($data['total_price']) ?>円</td>
</tbody>
<tfoot>
<tr>
    <td colspan="6" style="text-align: center">
        <input type="button" onclick="location.href='<?=site_url('cart/destroy')?>'" value="カートを空にする" />
        <input type="submit" value="修正" />
    </td>
</tr>
</tfoot>
</table>
</form>

<div class="row">
	<div class="col-md-12"><h1 class="page-header"><small>お届け先情報</small></h1></div>
</div>
<div align="center">
<p>
  <button type="button" class="btn btn-primary btn-lg">ログインする</button>
  <button type="button" class="btn btn-primary btn-lg">ゲスト購入</button>
</p>
</div>
<br />
<!-- 
<pre>
<?php var_dump($data);?>
</pre>
 -->